:root {
  --status-bar-height: 0px;
  --navigation-bar-height: 50px;
  --window-top: calc(
    var(--navigation-bar-height) + var(--status-bar-height) + env(safe-area-inset-top)
  );
  --aside-min-width: 200px;
  --aside-max-width: 200px;
  --transition-duration: 0.3s;
  --min-width: 320px;
  --safe-bottom-area: 50px;
}

/* @media screen and (max-width: 500px) {
  :root {
    --navigation-bar-height: 44px;
  }
} */

:root {
  --blog-font-family-base: 'Inter var experimental', 'Inter var', Inter, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans',
    'Helvetica Neue', sans-serif;
  --blog-font-family-mono: Menlo, Monaco, Consolas, 'Courier New', monospace;
  --blog-font-size-h1: 48px;
  --blog-font-size-h2: 32px;
  --blog-font-size-h3: 24px;
  --blog-radius-1: 4px;
  --blog-radius-2: 8px;
  --blog-radius-3: 12px;
}

body,
html {
  height: 100%;
}

body {
  width: 100%;
  min-width: var(--min-width);
  font-family: var(--blog-font-family-base);
  letter-spacing: 0.2px;
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
  color: var(--blog-text-1);
  background-color: var(--blog-bg);
  direction: ltr;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  transition: color 0.5s, background-color 0.5s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

body.overflow-hidden {
  /* overflow: hidden; */
}

pre code {
  font-family: var(--blog-font-family-mono);
}

table {
  table-layout: fixed;
  border: 1px solid var(--blog-border-color-1);
  box-sizing: border-box;
  border-radius: var(--blog-radius-1);
  background-color: var(--blog-bg-regular);
  border-collapse: collapse;
  margin: 1em auto;
}

table th,
table td {
  border: 1px solid var(--blog-border-color-1);
  padding: 0.5em;
  border-radius: var(--blog-radius-1);
}

table th {
  white-space: nowrap;
}

tbody tr:nth-child(2n + 1) {
  background-color: var(--blog-bg);
}

tbody tr:hover {
  background-color: var(--blog-bg-soft);
}

ul,
ol {
  padding: 0;
  padding-left: 0.5em;
  list-style-position: inside;
}

li {
  margin: 0.5em 0;
}

img {
  max-width: 100%;
  padding: 0.5em 0;
}

a {
  text-decoration: none;
  line-height: 1.6;
  color: var(--blog-brand-light);
}
a:visited {
  color: var(--blog-brand-light);
}
a:hover {
  color: var(--blog-brand-highlight);
}
a:active {
  color: var(--blog-brand-light);
}

a,
img,
button,
input,
textarea,
div {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}
